<?php
/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
require_once 'templates/header.php';

$this->lang->load('home', 'english');
$sign_type = end($this->uri->segment_array());
?>
<title><?= $this->lang->line('home_title') ?></title>
<link type="text/css" rel="stylesheet" href="<?= base_url('asset/css/home.css') ?>" />
<script type="text/javascript" src="<?= base_url("asset/js/controller/HomeView.js") ?>" ></script>
<script>
    $(document).ready(function () {
        if ("signin" === "<?= $sign_type ?>") {
            $("#signup-form").css("display", "none");
            $("#signin-form").css("display", "");
            $("#signin-header-button").val("Sign up");
        }
    });
</script>
<?php
require_once 'templates/header-content.php';
?>
<body>
    <?= require_once 'templates/menu.php'; ?>
    <div id="authen-box" class="contrianer content-bg">
        <div class="content">
            <div class="content-box-left">
                <p>
                    <span class='font-36 font-bold'>Night club over the world</span>
                    <span class='font-30 font-bold'>Better, together.</span>
                </p>
                <p>
                    <span class='font-24'>Keep walking together.</span>
                    <span class='font-24'>Develop by Edward Melody.</span>
                </p>
            </div>
            <div id="signup-form" class="content-box-right">
                <form action="<?= base_url("Home/signup") ?>" method="post">
                    <input type="text" name="signup-username" autocomplete="false" placeholder="Pick a username" value="<?php echo set_value('signup-username'); ?>" /><br />
                    <?php echo form_error('signup-username'); ?>
                    <input type="text" name="signup-email" autocomplete="false" placeholder="Your email" value="<?php echo set_value('signup-email'); ?>" /><br />
                    <?php echo form_error('signup-email'); ?>
                    <input type="password" name="signup-password" autocomplete="false" placeholder="Create a password" value="" /><br />
                    <?php echo form_error('signup-password'); ?>
                    <p class="text">Use at least one lowercase letter, one numeral, and seven characters.</p>
                    <input type="submit" id="signup-button" name="signup-button" value="Signup for WongLounge" /><br />
                    <p class="text">By clicking "Sign up for WongLounge", you agree to our <a href="#">terms of service</a> and <a href="#">privacy policy</a>. We will send you account related emails occasionally.</p>
                </form>
            </div>
            <div id="signin-form" class="content-box-right" style="display:none;">
                <form action="<?= base_url("Home/signin") ?>" method="post">
                    <input type="text" name="signin-username" autocomplete="false" placeholder="Email or username" value="<?php echo set_value('signin-username'); ?>" /><br />
                    <?php echo form_error('signin-username'); ?>
                    <input type="password" name="signin-password" autocomplete="false" placeholder="Your password" value="" /><br />
                    <?php echo form_error('signin-password'); ?>
                    <?php
                    if (isset($image)) {
                        echo $image;
                        ?>
                        <input id="captcha" name="signin-captcha" type="text" placeholder="Captcha" />
                        <?php
                        echo form_error('signin-captcha');
                    }
                    ?>
                    <input type="submit" id="signin-button" name="signin-button" value="Signin for WongLounge" /><br />
                    <div class="error"><?= isset($signin_error) ? $signin_error : '' ?></div>
                </form>
            </div>
        </div>
    </div>
    <div class="contrianer">
        <div class="product-content">
            <div class="product-box-over-1rate">
                <div class="product-box">
                    <div class="product-box-title"><span>Night club I</span></div>
                    <div class="product-box-rate1"><span>1</span></div>
                    <img src="<?= base_url('asset/images/img1.jpg') ?>" class="rate1" />
                    <div class="product-box-star">
                        <img src="<?= base_url('asset/images/star.png') ?>" />
                        <img src="<?= base_url('asset/images/star.png') ?>" />
                        <img src="<?= base_url('asset/images/star.png') ?>" />
                        <img src="<?= base_url('asset/images/star.png') ?>" />
                        <img src="<?= base_url('asset/images/star.png') ?>" />
                    </div>
                    <a href="#">265 reviews</a><a href="#">265 pics</a>
                    <p>ซอยพญานาค ถนนเพชรบุรี , ราชเทวี , กรุงเทพมหานคร 10400 02-215 9289 ย่าน ราชเทวี - พญาไท</p>
                    <p>ประเภท <span>pub & bar,</span><span>pub & bar</span></p>
                </div>
            </div>
        </div>
    </div>
    <div class="contrianer">
        <div class="product-content">
            <div class="product-box-over-2rate">
                <div class="product-box">
                    <div class="product-box-title"><span>Night club I</span></div>
                    <div class="product-box-rate2"><span>2</span></div>
                    <img src="<?= base_url('asset/images/img2.jpg') ?>" class="rate2" />
                    <div class="product-box-star">
                        <img src="<?= base_url('asset/images/star.png') ?>" />
                        <img src="<?= base_url('asset/images/star.png') ?>" />
                        <img src="<?= base_url('asset/images/star.png') ?>" />
                        <img src="<?= base_url('asset/images/star.png') ?>" />
                        <img src="<?= base_url('asset/images/star.png') ?>" />
                    </div>
                    <a href="#">265 reviews</a><a href="#">265 pics</a>
                    <p>ซอยพญานาค ถนนเพชรบุรี , ราชเทวี , กรุงเทพมหานคร 10400 02-215 9289 ย่าน ราชเทวี - พญาไท</p>
                    <p>ประเภท <span>pub & bar,</span><span>pub & bar</span></p>
                </div>
            </div>
            <div class="product-box-over-2rate">
                <div class="product-box">
                    <div class="product-box-title"><span>Night club II</span></div>
                    <div class="product-box-rate2"><span>3</span></div>
                    <img src="<?= base_url('asset/images/img3.jpg') ?>" class="rate2" />
                    <div class="product-box-star">
                        <img src="<?= base_url('asset/images/star.png') ?>" />
                        <img src="<?= base_url('asset/images/star.png') ?>" />
                        <img src="<?= base_url('asset/images/star.png') ?>" />
                        <img src="<?= base_url('asset/images/star.png') ?>" />
                        <img src="<?= base_url('asset/images/star.png') ?>" />
                    </div>
                    <a href="#">265 reviews</a><a href="#">265 pics</a>
                    <p>ซอยพญานาค ถนนเพชรบุรี , ราชเทวี , กรุงเทพมหานคร 10400 02-215 9289 ย่าน ราชเทวี - พญาไท</p>
                    <p>ประเภท <span>pub & bar,</span><span>pub & bar</span></p>
                </div>
            </div>
        </div>
    </div>
    <div class="contrianer">
        <div class="product-content">
            <div class="product-box-over">
                <div class="product-box">
                    <div class="product-box-title"><span>Night club I</span></div>
                    <div class="product-box-rate"><span>4</span></div>
                    <img src="<?= base_url('asset/images/img4.jpg') ?>" />
                    <div class="product-box-star">
                        <img src="<?= base_url('asset/images/star.png') ?>" />
                        <img src="<?= base_url('asset/images/star.png') ?>" />
                        <img src="<?= base_url('asset/images/star.png') ?>" />
                        <img src="<?= base_url('asset/images/star.png') ?>" />
                        <img src="<?= base_url('asset/images/star.png') ?>" />
                    </div>
                    <a href="#">265 reviews</a><a href="#">265 pics</a>
                    <p>ซอยพญานาค ถนนเพชรบุรี , ราชเทวี , กรุงเทพมหานคร 10400 02-215 9289 ย่าน ราชเทวี - พญาไท</p>
                    <p>ประเภท <span>pub & bar,</span><span>pub & bar</span></p>
                </div>
            </div>
            <div class="product-box-over">
                <div class="product-box">
                    <div class="product-box-title"><span>Night club II</span></div>
                    <div class="product-box-rate"><span>5</span></div>
                    <img src="<?= base_url('asset/images/img5.jpg') ?>" />
                    <div class="product-box-star">
                        <img src="<?= base_url('asset/images/star.png') ?>" />
                        <img src="<?= base_url('asset/images/star.png') ?>" />
                        <img src="<?= base_url('asset/images/star.png') ?>" />
                        <img src="<?= base_url('asset/images/star.png') ?>" />
                        <img src="<?= base_url('asset/images/star.png') ?>" />
                    </div>
                    <a href="#">265 reviews</a><a href="#">265 pics</a>
                    <p>ซอยพญานาค ถนนเพชรบุรี , ราชเทวี , กรุงเทพมหานคร 10400 02-215 9289 ย่าน ราชเทวี - พญาไท</p>
                    <p>ประเภท <span>pub & bar,</span><span>pub & bar</span></p>
                </div>
            </div>
            <div class="product-box-over">
                <div class="product-box">
                    <div class="product-box-title"><span>Night club III</span></div>
                    <div class="product-box-rate"><span>6</span></div>
                    <img src="<?= base_url('asset/images/img6.jpg') ?>" />
                    <div class="product-box-star">
                        <img src="<?= base_url('asset/images/star.png') ?>" />
                        <img src="<?= base_url('asset/images/star.png') ?>" />
                        <img src="<?= base_url('asset/images/star.png') ?>" />
                        <img src="<?= base_url('asset/images/star.png') ?>" />
                        <img src="<?= base_url('asset/images/star.png') ?>" />
                    </div>
                    <a href="#">265 reviews</a><a href="#">265 pics</a>
                    <p>ซอยพญานาค ถนนเพชรบุรี , ราชเทวี , กรุงเทพมหานคร 10400 02-215 9289 ย่าน ราชเทวี - พญาไท</p>
                    <p>ประเภท <span>pub & bar,</span><span>pub & bar</span></p>
                </div>
            </div>
        </div>
    </div>
</body>
<?php
require_once 'templates/footer.php';
